
# 安装yaml  pip install pyyaml -i 镜像
import yaml

# 读取yaml文件
def load_yaml(filename):
    with open(filename,"r",encoding="utf-8")as f:
        data=yaml.safe_load(f)
    return data

if __name__ == '__main__':
    a=load_yaml("../data/login.yaml")
    print(a)